package com.aistar.helper.day02;

/**
 * 本类用来演示
 **/
public class DataTypeDemo {
    public static void main(String[] args) {
        byte by = 17;
        short sh = 12,sh2 = 45;
        int i = 123444;
        long l = 1234567890;

        int a = 0b110011111111111111100000000001;
        int b = 02345;
        int c = 110;
        int d = 0x12a;
        char cha = 67;
        char cha1 = 'A';
        System.out.println(2.0-1.9);
        System.out.println("二进制:" +a);
        System.out.println("八进制:" +b);
        System.out.println("十进制:" +c);
        System.out.println("十六进制:"+d);
        System.out.println((int) cha1);
        System.out.println((char)88);
        System.out.println("char和int相加后::"+(cha1+10));


    }
}
